#include<AT89X52.h>
void Port2_Open()
{
P2=0x0;
}

void Port2_Close()
{
P2=0xFF;
}

void Port2_0_Close()
{
P2_0=1;
}

void function1()
{
Port2_Close();
Port2_Open();
Port2_0_Close();
}